package com.wkbb.basic.service;

import com.github.pagehelper.PageInfo;
import com.wkbb.basic.model.Blacklist;
import com.wkbb.common.base.BaseService;
import com.wkbb.common.dto.ResultDTO;
import com.wkbb.common.dto.basic.BlacklistInfoDto;

import java.util.List;
import java.util.Map;

/**
 * @author lizhichao
 * @date 2019/8/9
 * @description
 */
public interface BlackListService extends BaseService<Blacklist> {

    /**
     * 增加黑名单
     * @param blacklistInfoDto
     * @param userName
     * @throws Exception
     */
    ResultDTO<Object> insert(BlacklistInfoDto blacklistInfoDto, String userName) throws Exception;

    /**
     * 删除黑名单
     * @param ids
     * @throws Exception
     */
    void delete(List<Long> ids) throws Exception;

    /**
     * 编辑黑名单
     * @param blacklistInfoDto
     * @param userName
     * @throws Exception
     */
    ResultDTO<Object> update(BlacklistInfoDto blacklistInfoDto,String userName) throws Exception;

    /**
     * 查询黑名单分页列表
     * @return
     * @throws Exception
     */
    PageInfo<BlacklistInfoDto> getBlacklistInfoList(Map<String,Object> params, Integer pageNo, Integer pageSize)
            throws Exception;

    /**
     *  查询黑名单列表
     * @param params
     * @return
     * @throws Exception
     */
    List<BlacklistInfoDto> getBlackListDtoByMapParams(Map<String,Object> params) throws Exception;

}
